<#assign  title="帮助中心" />
<#assign  index_type=2 />
<#include 'common/header.html' />
<#include 'common/reception_header.html'/>
<link rel="stylesheet" href="${ctx}${themes_path}/css/other.css" type="text/css" />
<#assign dataSearchTag=newTag("dataSearchTag") />


<!--Main开始-->
<div class="help-main">
	<div class="help_navigation">
		<span class="na01">您的当前位置：</span>
		<span class="na02"><a href="${ctx}/index.html">首页></a></span>
		<span class="na02">帮助中心></span>
		<span class="na02">关于我们</span>		
	</div>
	<div class="help_content">
		<div class="left">
			<div id="firstpane" class="menu_list">
				<input type="hidden" value="${articleid!0}" class="articleid">
			    <p class="menu_head current">关于网站</p>
			    <#assign webPage = dataSearchTag('{"modelid":2,"catid":21}') />
				<#list webPage.result as article>
					<a href="javascript:void(0);" articleid="${article.id}" class="content <#if article_index == 0> selected </#if>">${article.title!''}</a>
				</#list>
			   
			    
			    <p class="menu_head">新手上路</p>
			   <#assign webPage = dataSearchTag('{"modelid":2,"catid":17}') />
				<#list webPage.result as article>
					<a href="javascript:void(0);" articleid="${article.id}" class="content">${article.title!''}</a>
				</#list>
			    
			    <p class="menu_head">购物指南</p>
			    <#assign webPage = dataSearchTag('{"modelid":2,"catid":18}') />
				<#list webPage.result as article>
					<a href="javascript:void(0);" articleid="${article.id}" class="content">${article.title!''}</a>
				</#list>
			    
			    <p class="menu_head">支付方式</p>
			    <#assign webPage = dataSearchTag('{"modelid":2,"catid":19}') />
				<#list webPage.result as article>
					<a href="javascript:void(0);" articleid="${article.id}" class="content">${article.title!''}</a>
				</#list>
			    
			    
			    <p class="menu_head">购物条款</p>
			    <#assign webPage = dataSearchTag('{"modelid":2,"catid":20}') />
				<#list webPage.result as article>
					<a href="javascript:void(0);" articleid="${article.id}" class="content">${article.title!''}</a>
				</#list>
			    
			    <p class="menu_head">配送方式</p>
			    <#assign webPage = dataSearchTag('{"modelid":2,"catid":22}') />
				<#list webPage.result as article>
					<a href="javascript:void(0);" articleid="${article.id}" class="content">${article.title!''}</a>
				</#list>
			    
			    <p class="menu_head">服务</p>
			   <#assign webPage = dataSearchTag('{"modelid":2,"catid":23}') />
				<#list webPage.result as article>
					<a href="javascript:void(0);" articleid="${article.id}" class="content">${article.title!''}</a>
				</#list>
				
				<p class="menu_head">优惠活动</p>
			   <#assign webPage = dataSearchTag('{"modelid":2,"catid":24}') />
				<#list webPage.result as article>
					<a href="javascript:void(0);" articleid="${article.id}" class="content">${article.title!''}</a>
				</#list>
				
				<p class="menu_head">我的订单</p>
			   	<#assign webPage = dataSearchTag('{"modelid":2,"catid":25}') />
				<#list webPage.result as article>
					<a href="javascript:void(0);" articleid="${article.id}" class="content">${article.title!''}</a>
				</#list>
			</div>
		</div>
		<div class="right">
			<#assign dataDetailTag=newTag("dataDetailTag")>
			<!-- 调用CMS蚊香详细标签，并传递文章所在分类ID，及文章ID -->
			<#assign dataDetail=dataDetailTag("{'catid':${catid!21},'id':${articleid!7}}")>
			<!-- 文章详细，所需的catid与articleid通过help.html?catid=XXX&articleid=XXX传递参数 -->
			${dataDetail.content!''} 
		</div>
	</div>
</div>
<!--Main end-->

<script>

$(function(){
	
	//点击左侧菜单，添加选中状态
	$(".content").click(function(){
		$("#firstpane .content").removeClass("selected");
		$(this).addClass("selected");
		var aid = $(this).attr("articleid");
		$.ajax({
	       url: "help_content.html?articleid="+aid,
	       dataType: "html",
	       success: function(html){
				$('.right').html(html);
	       }
	   });
	})
	
	
	//通过传递参数获得选中状态
	var helpSelected = $(".articleid").val();  //获得传递参数
	$(".menu_list a").each(function(){
		var selected = $(this).attr("articleid");  //获得自身ID
		if (helpSelected==selected){
			$(".menu_list a").removeClass("selected");
			$(this).addClass("selected");
		}
	})
	
})
</script>

<#include 'common/footer.html' />